//
//  CBCChapterModel.h
//  CBCReader
//
//  Created by Labanotation on 16/5/31.
//  Copyright © 2016年 okwei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreText/CoreText.h>
@interface CBCContentModel : NSObject
@property (nonatomic,strong)NSAttributedString * content;
@property (nonatomic,assign)BOOL firstHeadCut;//首段落是否被截断
@end

@interface CBCChapterModel : NSObject<NSCopying,NSCoding>
@property (nonatomic,strong) NSMutableArray *pageArray;
@property (nonatomic,strong) NSString *content;
@property (nonatomic,strong) NSMutableAttributedString * attrString;
@property (nonatomic,strong) NSString *title;
@property (nonatomic,assign) NSUInteger chapterIndex;
@property (nonatomic) NSUInteger pageCount;
@property(nonatomic, strong)NSString *ID ;
@property(nonatomic, assign)NSUInteger num;
@property(nonatomic, assign)BOOL isPay ;

-(CBCContentModel *)stringOfPage:(NSUInteger)index;
-(void)updateFont;
+(id)chapterWithEpub:(NSString *)chapterpath title:(NSString *)title;
@end

